package com.training.pojo.chengshu;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * UUser entity. @author MyEclipse Persistence Tools
 */

public class UUser implements java.io.Serializable {

	// Fields

	private Integer uid;
	private UDept UDept;
	private String uname;
	private String upass;
	private Integer utype;
	private String telephone;
	private String mail;
	private String mobile;
	private Integer sex;
	private Date birthday;
	private String usernote;
	private Integer isdelete;
	private Set UDepts = new HashSet(0);
	private Set motorRooms = new HashSet(0);
	private Set userRoles = new HashSet(0);
	private Set ULogs = new HashSet(0);

	// Constructors

	/** default constructor */
	public UUser() {
	}

	/** full constructor */
	public UUser(UDept UDept, String uname, String upass, Integer utype,
			String telephone, String mail, String mobile, Integer sex,
			Date birthday, String usernote,Set UDepts, Set motorRooms,
			Set userRoles, Set ULogs) {
		this.UDept = UDept;
		this.uname = uname;
		this.upass = upass;
		this.utype = utype;
		this.telephone = telephone;
		this.mail = mail;
		this.mobile = mobile;
		this.sex = sex;
		this.birthday = birthday;
		this.usernote = usernote;
		this.UDepts = UDepts;
		this.motorRooms = motorRooms;
		this.userRoles = userRoles;
		this.ULogs = ULogs;
		this.isdelete=1;
	}

	// Property accessors

	public Integer getUid() {
		return this.uid;
	}

	public void setUid(Integer uid) {
		this.uid = uid;
	}

	public UDept getUDept() {
		return this.UDept;
	}

	public void setUDept(UDept UDept) {
		this.UDept = UDept;
	}

	public String getUname() {
		return this.uname;
	}

	public void setUname(String uname) {
		this.uname = uname;
	}

	public String getUpass() {
		return this.upass;
	}

	public void setUpass(String upass) {
		this.upass = upass;
	}

	public Integer getUtype() {
		return this.utype;
	}

	public void setUtype(Integer utype) {
		this.utype = utype;
	}
    
	public String getTelephone() {
		return this.telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	public String getMail() {
		return this.mail;
	}

	public void setMail(String mail) {
		this.mail = mail;
	}

	public String getMobile() {
		return this.mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public Integer getSex() {
		return this.sex;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}
	public Date getBirthday() {
		return this.birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public String getUsernote() {
		return this.usernote;
	}

	public void setUsernote(String usernote) {
		this.usernote = usernote;
	}

	public Set getUDepts() {
		return this.UDepts;
	}

	public void setUDepts(Set UDepts) {
		this.UDepts = UDepts;
	}

	public Set getMotorRooms() {
		return this.motorRooms;
	}

	public void setMotorRooms(Set motorRooms) {
		this.motorRooms = motorRooms;
	}

	public Set getUserRoles() {
		return this.userRoles;
	}

	public void setUserRoles(Set userRoles) {
		this.userRoles = userRoles;
	}

	public Set getULogs() {
		return this.ULogs;
	}

	public void setULogs(Set ULogs) {
		this.ULogs = ULogs;
	}

	public Integer getIsdelete() {
		return isdelete;
	}

	public void setIsdelete(Integer isdelete) {
		this.isdelete = isdelete;
	}
	

}